import request from '@/utils/request'

// 查询会员信息列表
export function listMemInfo(query) {
  return request({
    url: '/member/memInfo/list',
    method: 'get',
    params: query
  })
}

// 查询会员信息详细
export function getMemInfo(id) {
  return request({
    url: '/member/memInfo/' + id,
    method: 'get'
  })
}

// 新增会员信息
export function addMemInfo(data) {
  return request({
    url: '/member/memInfo',
    method: 'post',
    data: data
  })
}

// 修改会员信息
export function updateMemInfo(data) {
  return request({
    url: '/member/memInfo',
    method: 'put',
    data: data
  })
}

// 删除会员信息
export function delMemInfo(id) {
  return request({
    url: '/member/memInfo/' + id,
    method: 'delete'
  })
}

// 导出会员信息
export function exportMemInfo(query) {
  return request({
    url: '/member/memInfo/export',
    method: 'get',
    params: query
  })
}
// 审核会员信息详细
export function getAuth(id, type, verfyReason) {
  return request({
    url: `/member/memInfo/auth/${id}/${type}`,
    method: 'get',
    params: verfyReason
  })
}